package cn.web.management.web.servlet.inform.admin;

import cn.web.management.service.general.AdminQuery;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(name = "queryGroupPersonalShuttleRightServlet", value = "/queryGroupPersonalShuttleRightServlet")
public class queryGroupPersonalShuttleRightServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doPost(req,resp);
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("application/json;charset=UTF-8;");
        String groupno2 = req.getParameter("groupno2");
        AdminQuery adminQuery = new AdminQuery();
        String s = adminQuery.rightDate(groupno2);
        resp.getWriter().write(s);
    }
}
